<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@next"></script>
</head>
<body>
    <div id="app"></div>
</body>
<script>
    const app = Vue.createApp({
        data(){
            return{
                data: '1',
                checked: '未选中',
                colors:[],
                color:''
            }
        },
        methods:{

        },
        template:`<h2>{{data}}</h2>
        <input v-model="data"/>
        <textarea v-model="data"/><br/>
        <input type="checkbox" v-model="checked" true-value="选中了" false-value="未选中"/>{{checked}}<br/>
        红：<input type="checkbox" v-model="colors" value="红"/>
        橙：<input type="checkbox" v-model="colors" value="橙"/>
        黄：<input type="checkbox" v-model="colors" value="黄"/>{{colors}}<br/>
        红：<input type="radio" v-model="color" value="红"/>
        橙：<input type="radio" v-model="color" value="橙"/>
        黄：<input type="radio" v-model="color" value="黄"/>{{color}}<br/>
        `
    })
    app.mount("#app")
</script>
</html>